html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
button {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a {
  text-decoration: none;
}

input,
textarea {
  outline: none;
  border: none;
  background-color: transparent;
  font-family: inherit;
}

input,
textarea {
  user-select: auto;
}

html {

  font-size: 16px;
  word-spacing: 1px;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

html,
body {
  background-color: var(--bg-body);
  color: var(--d-main);
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
  font-family: PingFang SC, Microsoft Yahei, Helvetica, Arial, sans-serif;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--d-main);
  background-color: transparent;
  background-image: none;
  box-shadow: 0 0 0 1000px var(--bg-input) inset;
  transition: background-color 50000s ease-in-out 0s;
}

* {
  scrollbar-color: var(--bg-hover) var(--bg-card);
  scrollbar-width: thin;
}

/* // 隐藏滚动条样式 */
.d-scrollbar-hide {
  // 兼容火狐
  scrollbar-color: var(--bg-hover) var(--bg-card);
  scrollbar-width: none;

  &::-webkit-scrollbar {
    width: 0;
    height: 3px;
  }

  &::-webkit-scrollbar {
    width: 0;
    height: 3px;
  }

  &::-webkit-scrollbar-track {
    background-color: transparent;
  }

  &::-webkit-scrollbar-thumb {
    background: #e8eaec;
  }
}


/* // 极简滚动条样式 */
&::-webkit-scrollbar {
  transition: .2s;
  width: 6px;
  height: 6px;

  &:hover {
    width: 10px;
  }
}

&::-webkit-scrollbar-track {
  background-color: transparent;
}

&::-webkit-scrollbar-thumb {
  background: var(--bg-hover);
  border-radius: 4px;
}

.d-scrollbar {
  &::-webkit-scrollbar-thumb {
    background: var(--bg-card);
  }

  &:hover {
    &::-webkit-scrollbar-thumb {
      background: var(--bg-hover);
    }
  }
}